html,
body {
    width: 100%;
    height: 100%;
    /* 防止盒子塌陷 */
    overflow: hidden;
}

body {
    background-color: #8df;
}

#logo {
    margin: 30px 240px;
}

.box {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 310px;
    background-color: pink;
    box-shadow: 5px 5px 5px 5px;
}

.title {
    font-size: 26px;
    line-height: 60px;
    text-align: center;
}

.layui-form {
    margin: 0 30px;
}

.changeBox {
    float: right;
}

/* 默认注册盒子隐藏 */
.register {
    display: none;
}

/* 图标设置 */
.layui-form-item {
    position: relative;
}

.layui-icon {
    position: absolute;
    left: 10px;
    top: 10px;
}

.layui-input {
    padding-left: 30px;
}